﻿package II.controls {
	
	
	public class Size {

		public static function IsEmpty ( size:Size ) : Boolean {
			if ( size == null || size._width==0 || size._height==0 ) {
				return true;
			}
			return false;
		}
		
		public function get width () : int {
			return _width;
		}
		var _width:int = 0;

		public function get height () : int {
			return _height;
		}
		var _height:int = 0;
		
		public function Size ( w:int=0, h:int=0 ) {
			this._width = w;
			this._height = h;
		}
		
		public function clone () : Size {
			return new Size (this._width, this._height);
		}
		
	}
	
}
